<?php include '../../common/view/headermodel.html.php';?>

<?php
css::import($jsRoot . 'jquery/chosen/chosen.min.css');
js::import($jsRoot . 'jquery/chosen/chosen.min.js');
?>
<style>
  .table-form > tbody > tr > th, .table-form > tbody > tr > td {
    padding: 5px;
  }
  .table-form{border: 1px solid #ccc;}
  .xiang{border-top: none;}
  .table-form > tbody > tr > td {
    padding: 5px;
    line-height: 24px;
  }
  .chuli{padding-left: 30px;}
  a{color: inherit;}
  li{list-style-type: none;}
  .table-form > tbody > tr > td {
    max-width: 280px;
  }
  li{list-style-type: none;}
  .modal-title-name{display: none;}
  .modal-title{display: none;}
  .htitle {
    margin: -47px 0 10px;
    width: 420px;
  }
</style>

<?php echo html::hidden('title','');?>
<div class="htitle">
  <?php echo $title;?>
</div>
<?php foreach($scategory as $key=>$sval) :?>
  <table class='table-form w-p100 <?php if($key>0) :?> xiang <?php endif ?>'>
    <?php if($sval->category):?>
    <tr>
      <td>
        <li>
          <?php echo $sval->name.$sval->category.'扣'.$sval->sum.'分。'?>
          [<?php echo $sval->eventtime;?>]
        </li>
      </td>
    </tr>
    <?php endif ?>
    <?php if($sval->liandai) :?>
    <?php foreach($sval->liandai as $liandai) :?>
        <tr>
          <td>
            <li>
              <?php echo $liandai->user.$liandai->categoryname.'扣'.$liandai->score.'分。'?>
              [<?php echo $sval->eventtime;?>]
            </li>
          </td>
        </tr>
      <?php endforeach ?>
    <?php endif ?>
  </table>
<?php endforeach ?>
<?php include '../../common/view/footermodel.html.php';?>
